#include <stdio.h>

int main() {
    int n, k;
    long double h;
    scanf("%d", &n);
    h = 0;
    for (k=1;k<=n;k++) 
        h += (long double)1/k;
    printf ("%Lf\n", h);
    return 0;
}
